<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>

    <meta name="description" content="描述">
    <meta name="keywords" content="关键词">
    <link rel="icon" href="">
    <link rel="shortcut icon" href="">
    <link rel="stylesheet" href="/web/public/css/public.css">
    <link rel="stylesheet" href="/web/public/css/header.css">
    <link rel="stylesheet" href="/web/public/css/footer.css">
    <link rel="stylesheet" href="/web/public/css/tag.css">
    <title>电梯采购网</title>
    <script src="/web/lib/jquery-1.12.4.min.js"></script>
    <script src="/web/public/public.js"></script>
    <script src="/web/lib/jquery.pagination.js"></script>
</head>
<body>
<div class="container">
    <!--这里引入header-->
    <include file="/web/html/header/header.htm" page-type="1"></include>
    <div id="main">
        <div class="top-laber">
            <div class="top-laber-text">TAG标签</div>
            <div class="top-laber-underline"></div>
            <div class="top-laber-shortline"></div>
        </div>
        <div class="left">

            <ul class="content-list">
                <!--<li><a href="">这是一个文艺标签！！！</a></li>
                <li><a href="">这是一个标签！！！</a></li>
                <li><a href="">这是一个屌丝标签！！！</a></li>
                <li><a href="">这是一个女汉字标签！！！</a></li>
                <li><a href="">这是一个神标签！！！</a></li>-->
            </ul>
        </div>

    </div>
    <include file="/web/html/footer/footer.htm"></include>
</div>
<script>
    var tagId = utils.getQueryVariable('id');

    $.ajax({
        url: ports.getTagListTdk,
        data: {
            keyword: tagId
        },
        success: function (res) {
            console.log('获取标签列表tdk', res);
            $("title").text(res.data.channelTitle + '-政府采购信息网' || '政府采购信息网');
            $("meta[name='keywords']").prop('content', res.data.channelKeyword || '');
            $("meta[name='description']").prop('content', res.data.channelDescriptions || '');
        }
    })

    function getTagList(pageNum, resetPage) {
        var pageSize = 14;
        $.ajax({
            url: ports.front_label_list,
            data: {
                // plateIds: tagId,
                // page: pageNum,
                // size: pageSize
            },
            success: function (res) {
                console.log('获取标签列表11', res);
                var tagListHtml = '';
                var tagList = res.data;
                tagList.forEach(function (item) {
                    var urlHtml = '/web/html/list/tags-list.html?id='+item.value;

                    tagListHtml += '<li>\n' +
                        '                    <a href="'+urlHtml+'">'+item.label+'</a>\n'+

                        '                </li>'
                })
                $('ul.content-list').html(tagListHtml);
            }
        });
    }
    getTagList(1, true);

</script>
</body>
</html>